from django.urls import path
from . import views  # 假设views.py已存在，若不存在需同步创建

urlpatterns = [
    # 获取所有省份
    path('areas/',views.AreaView.as_view()),
    # 获取所有城市和区县
    path('areas/<int:pk>/',views.SubAreaView.as_view()),
]